		
        <div class="form-add">
        	<?php admin_msg( $msg ); ?>
    		<form name="myform" action="<?php echo admin_link( 'dealer/edit/'.$row['id'] ) ?>" method="post">
    			<input type="hidden" value="<?php echo $row['id'] ?>" name="hid" />
            	<table width="100%">
            		<tr>
                        <td width="120">Kiểu</td>
                        <td>
                            <p>
                                <input <?php if ( $row['type'] == 1 ) echo 'checked="checked"'; ?> type="radio" name="type" value="1" /> <span>Đối tác</span>
                                <input <?php if ( $row['type'] == 0 ) echo 'checked="checked"'; ?> type="radio" name="type" value="0"  /> <span>Đại lý</span>
                            </p>
                        </td>
                    </tr>
                	<tr>
                        <td>Tên đại lý</td>
                        <td><input type="text" name="name" value="<?php echo $row['name'] ?>" maxlength="255" class="text" /></td>
            		</tr>
                    <tr>
                		<td>Địa chỉ</td>
                		<td><textarea name="address" class="text textarea2" cols="10" rows="10"><?php echo $row['address'] ?></textarea></td>
            		</tr> 
                    <tr>
                        <td>Điện thoại</td>
                        <td><input type="text" name="phone" value="<?php echo $row['phone'] ?>" maxlength="100" class="text" /></td>
            		</tr>
                    <tr>
                        <td>Di động</td>
                        <td><input type="text" name="mobile" value="<?php echo $row['phone'] ?>" maxlength="100" class="text" /></td>
            		</tr>
                    <tr>
                        <td>Fax</td>
                        <td><input type="text" name="fax" value="<?php echo $row['fax'] ?>" maxlength="100" class="text" /></td>
            		</tr>
                    <tr>
                        <td>Email</td>
                        <td><input type="text" name="email" value="<?php echo $row['email'] ?>" maxlength="255" class="text" /></td>
            		</tr>
                    <tr>
                        <td>Website</td>
                        <td><input type="text" name="website" value="<?php echo $row['website'] ?>" maxlength="255" class="text" /></td>
            		</tr>
            		<?php admin_box_img( $row['image'], $row['image_text']  ) ;	?> 
                    <tr>
                        <td colspan="2" class="h4">Tùy chọn</td>
                    </tr>   
                    <tr>
                        <td>Thứ tự</td>
                        <td><input type="text" name="order" value="<?php echo $row['orders'] ?>" class="text text-numb2" /></td>
                    </tr>                 
                    <tr>
                        <td>Hiển thị trang chủ</td>
                        <td>
                            <p>
                                <input <?php if ( $row['home'] == 1 ) echo 'checked="checked"'; ?> type="radio" name="home" value="1" /> <span>Có</span>
                                <input <?php if ( $row['home'] == 0 ) echo 'checked="checked"'; ?> type="radio" name="home" value="0" /> <span>Không</span>
                            </p>
                        </td>
                    </tr>
                    <tr>
                        <td>Hiển thị</td>
                        <td>
                            <p>
                                <input <?php if ( $row['status'] == 1 ) echo 'checked="checked"'; ?> type="radio" name="status" value="1" /> <span>Có</span>
                                <input <?php if ( $row['status'] == 0 ) echo 'checked="checked"'; ?> type="radio" name="status" value="0" /> <span>Không</span>
                            </p>
                        </td>
                    </tr>
                    <tr>
                        <td></td>
                        <td><input type="submit" name="submit" value="Thay đổi" class="button" /></td>
                    </tr>
                </table>  
            </form>
		</div> 
            